package com.hntest.entity;
/**
 * 账户流水表
 * @author xu
 *
 */

import java.math.BigDecimal;
import java.util.Date;

import com.hntest.util.BidConst;

public class AccountFlow extends BaseDomain{

	/**
	 * 
	 */
	private static final long serialVersionUID = -8445990472687922539L;
	private int accountActionType;//账户流水类型
	private BigDecimal amount=BidConst.ZERO;//发生额
	private Account account;//对应的账户
	private String note;//备注
	private BigDecimal balance=BidConst.ZERO;//可用金额
	private BigDecimal freezed=BidConst.ZERO;//冻结金额
	private Date actionTime;//发生时间
	
	
	
	public int getAccountActionType() {
		return accountActionType;
	}
	public void setAccountActionType(int accountActionType) {
		this.accountActionType = accountActionType;
	}
	public BigDecimal getAmount() {
		return amount;
	}
	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}
	public Account getAccount() {
		return account;
	}
	public void setAccount(Account account) {
		this.account = account;
	}
	public String getNote() {
		return note;
	}
	public void setNote(String note) {
		this.note = note;
	}
	public BigDecimal getBalance() {
		return balance;
	}
	public void setBalance(BigDecimal balance) {
		this.balance = balance;
	}
	public BigDecimal getFreezed() {
		return freezed;
	}
	public void setFreezed(BigDecimal freezed) {
		this.freezed = freezed;
	}
	public Date getActionTime() {
		return actionTime;
	}
	public void setActionTime(Date actionTime) {
		this.actionTime = actionTime;
	}
	//资金流水类别
	public final static int ACCOUNT_ACTIONTYPE_DEPOSIT_OFFLINE_LOCAL=0;//线下充值
	public final static int ACCOUNT_ACTIONTYPE_WITHDRAW=1;//提现
	public final static int ACCOUNT_ACTIONTYPE_BIDREQUEST_SUCCESSFUL=2;//成功借款
	public final static int ACCOUNT_ACTIONTYPE_BID_SUCCESSFUL=3;//成功投标
	public final static int ACCOUNT_ACTIONTYPE_RETURN_MONEY=4;//还款
	public final static int ACCOUNT_ACTIONTYPE_CALLBACK_MONEY=5;//回款
	public final static int ACCOUNT_ACTIONTYPE_CHARGE=6;//平台管理费
	public final static int ACCOUNT_ACTIONTYPE_INTEREST_SHARE=7;//利息管理费
	public final static int ACCOUNT_ACTIONTYPE_WITHDRAW_MANAGE_CHARGE=8;//提现手续费
	public final static int ACCOUNT_ACTIONTYPE_RECHARGE_CHARGE=9;//充值手续费
	public final static int ACCOUNT_ACTIONTYPE_BID_FREEZED=10;//投标冻结金额
	public final static int ACCOUNT_ACTIONTYPE_WITHDRAW_FREEZED=10;//提现申请冻结金额
	public final static int ACCOUNT_ACTIONTYPE_WITHDRAW_UNFREEZED=11;//提现申请冻结金额
}
